package com.ionehe.group.common.file.oss.factory;

import com.ionehe.group.common.file.FileServer;
import com.ionehe.group.common.file.configure.FileServerConfiguration;
import com.ionehe.group.common.file.factory.Factory;
import com.ionehe.group.common.file.oss.file.FileServerImpl;

/**
 * Copyright (c) 2021 ionehe.com
 * Date: 2021/4/25
 * Time: 10:57 上午
 *
 * @author 2021年 <a href="mailto:a@ionehe.com">秀</a>
 * 【oss工厂实现】
 */
public class FileFactory implements Factory {
    private final FileServerConfiguration configuration;

    public FileFactory(FileServerConfiguration configuration) {
        this.configuration = configuration;
    }

    @Override
    public FileServer create() {
        return new FileServerImpl(configuration);
    }
}
